package la.iok.hzsvn.lewin.movie.shopmovie.model;

import java.util.Objects;

/**
 * 支付方式
 */
public class PayType {
    /**
     * 支付名称
     */
    private String name;
    /**
     * 支付方式值
     */
    private Integer value;

    public PayType() {
    }

    public PayType(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof PayType)) return false;
        PayType payType = (PayType) o;
        return Objects.equals(name, payType.name) && Objects.equals(value, payType.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, value);
    }
}
